/*************************************************************************
    > File Name: hello2.c
    > Author: Xing.Dai
    > Mail: Xing.Dai@aliyun.com 
    > Created Time: 2017-05-24 22:21
 ************************************************************************/

#include <stdio.h>
#include <curses.h>
#include <unistd.h>
int main()
{
	int i;

	initscr();
	clear();

	for(i = 0; i < LINES; i++){
		move(i, i + 1);
		if(i % 2 == 1)
			standout();	/* start standout mode. */
		addstr("Hello world.");
		if(i % 2 == 1)
			standend();	/* end standout mode. */
		
		sleep(1);
		refresh();
	}

//	getch();
	endwin();
}
